<template>
  <div class="index">
    <!-- <ChatRoom other-id="31321" user_id="118" /> -->
    
    <Ktable :data-tabel="aaa" :name-table="nameTable" />
    <kletter  choosed>asdas</kletter>
    <Kpopover :search="search" @finish="finish" :width="600">
      <!-- <template #box> asdasdsa </template> -->
      <el-button>创建房间</el-button>
    </Kpopover>
    <!-- <KcommonImg   /> -->
    <Ksearchs :searchs="posi" />
    <KpeopleItem :user_id="23900" />
  </div>
</template>
<script setup lang="ts">
import { SearchType } from "./packages/tool/types";
import { onMounted, ref } from "vue";
import { Kpopover,kletter,Ksearchs, KpeopleItem, Ktable } from "./packages";
// import { Kpopover,kletter,Ksearchs } from "chat-room-npm";

const posi = ref<SearchType[]>([
  {
    val: "",
    placeHolder: "选择职位",
    type: "select",
    option: [],
    required: false,
    getValue: function () {
     
      
    },
    changeValue: function () {
      
    },
  },
  {
    val:"",
    placeHolder:"新增",
    type:"button",
    callback:()=>{
     
    }
  }
]);

import { NameType } from "chat-room-npm/tool/types";
// import Ktime from "./packages/Ktime/index.vue";
const aaa = ref([
  {
    age_desc: "25岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:35:02Z",
    id: 22339,
    is_true: "不符合",
    reason:
      "liwei的简历信息中显示其学历为本科，而非博士学历；且简历中并未提到曾在小米公司工作过，因此不符合要求。",
    title: "研发总监",
    update_time: "2025-05-16T15:35:03Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380903liwei_.png",
    user_id: 118,
    user_name: "liwei",
    work_year_desc: "3年",
  },
  {
    age_desc: "46岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:33:24Z",
    id: 22338,
    is_true: "不符合",
    reason:
      "学历不符合，简历显示学历为大专，但要求是博士学历；工作经验地点不符合，简历未显示在小米公司工作过，但要求在小米公司工作过2年以上。",
    title: "研发总监",
    update_time: "2025-05-16T15:33:25Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380805符先生_.png",
    user_id: 118,
    user_name: "符先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "44岁",
    apply_status_content: "离职-随时到岗",
    create_time: "2025-05-16T15:32:41Z",
    id: 22337,
    is_true: "不符合",
    reason:
      "彭先生的简历不符合要求，原因如下：\n1. 学历不符合：简历显示彭先生的学历为大专，而要求是博士学历。\n2. 工作经验不符：简历中没有显示彭先生在小米公司工作过2年以上的经历，而这是要求之一。",
    title: "研发总监",
    update_time: "2025-05-16T15:32:41Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380761彭先生_.png",
    user_id: 118,
    user_name: "彭先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "57岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:31:56Z",
    id: 22334,
    is_true: "不符合",
    reason:
      "学历为硕士，不满足博士学历的要求；简历中未显示在小米公司工作过2年以上的经历。",
    title: "研发总监",
    update_time: "2025-05-16T15:31:56Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380716张先生_.png",
    user_id: 118,
    user_name: "张先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "41岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:31:14Z",
    id: 22332,
    is_true: "不符合",
    reason:
      "不符合要求。原因如下：\n1. 学历要求是博士，但周先生的学历是大专；\n2. 要求在小米公司工作过2年以上，但简历中没有提到周先生在小米公司的工作经历。",
    title: "研发总监",
    update_time: "2025-05-16T15:31:15Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380675周先生_.png",
    user_id: 118,
    user_name: "周先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "40岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:30:18Z",
    id: 22330,
    is_true: "不符合",
    reason:
      "学历要求为博士，而钟先生的学历为本科；工作经历没有提及在小米公司工作过2年以上。",
    title: "研发总监",
    update_time: "2025-05-16T15:30:20Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380620钟先生_.png",
    user_id: 118,
    user_name: "钟先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "24岁",
    apply_status_content: "离职-随时到岗",
    create_time: "2025-05-16T15:29:52Z",
    id: 22329,
    is_true: "不符合",
    reason:
      "简历中显示陈女士的年龄为35岁，离职且随时到岗，学历为大专，工作经验为10年以上。这与要求的博士学历和在小米公司工作过2年以上并不匹配。",
    title: "研发总监",
    update_time: "2025-05-16T15:29:53Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380593陈女士_.png",
    user_id: 118,
    user_name: "陈女士",
    work_year_desc: "3年",
  },
  {
    age_desc: "24岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:29:10Z",
    id: 22327,
    is_true: "不符合",
    reason: "简历显示彭先生的学历是本科(非博士)，并且没有提到他在小米公司工作的经历。",
    title: "研发总监",
    update_time: "2025-05-16T15:29:11Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380551彭先生_.png",
    user_id: 118,
    user_name: "彭先生",
    work_year_desc: "3年",
  },
  {
    age_desc: "38岁",
    apply_status_content: "在职-月内到岗",
    create_time: "2025-05-16T15:28:30Z",
    id: 22326,
    is_true: "不符合",
    reason: "学历要求是博士，而卢先生的学历是本科；并且没有在小米公司工作过的经历。",
    title: "研发总监",
    update_time: "2025-05-16T15:28:30Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380510卢先生_.png",
    user_id: 118,
    user_name: "卢先生",
    work_year_desc: "10年以上",
  },
  {
    age_desc: "26岁",
    apply_status_content: "在职-考虑机会",
    create_time: "2025-05-16T15:28:00Z",
    id: 22324,
    is_true: "不符合",
    reason:
      "覃先生的简历不符合要求，因为他的学历是本科，并且没有在小米公司工作过的经历，而要求是博士学历且在小米公司工作过2年以上。",
    title: "研发总监",
    update_time: "2025-05-16T15:28:01Z",
    update_user_id: 0,
    url: "https://source.kasiasafe.top:5443/kasia/1747380481覃先生_.png",
    user_id: 118,
    user_name: "覃先生",
    work_year_desc: "4年",
  },
]);
const nameTable: NameType[] = [
  { prop: "user_name", label: "姓名" },
  { prop: "title", label: "申请职位" },
  { prop: "url", label: "简历图片" },
  { prop: "age_desc", label: "年龄" },
  { prop: "work_year_desc", label: "工作年限" },
  { prop: "is_true", label: "是否合格" },
  { prop: "reason", label: "原因" },
  { prop: "create_time", label: "日期" },
];
const finish = (data: any) => {
  console.log("finish", data);
};
const search = ref<SearchType[]>([
  {
    val: "",
    placeHolder: "时间",
    bind: "type",
    type: "date",
  },
  {
    val: "",
    placeHolder: "时间",
    bind: "type",
    type: "upload",
  },
  {
    val:"",
    placeHolder:"新增",
    type:"img",
  }
]);
// const listEle = ref<HTMLDivElement>()

onMounted(() => {});
</script>
<style scoped>
.index {
  overflow: hidden;
}
</style>
